package com.zph.pojo;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @author zzh
 * @description 常量类--控制本地和远端切换
 * @date 2017年1月10日 下午3:11:01
 */
public class Constants {
	
	/* 远程端 */ // /home/zhenhua/code/ParseServer/
//	public static final String baijiaxing = "com/zph/dao/baijiaxing.txt";
//	public static final String ImportList = "com/zph/dao/ImportList.txt";
//	public static final String User = "com/zph/dao/User.txt";
//	public static final String User1 = "com/zph/dao/User1.txt";
//	public static final String city = "com/zph/dao/city.txt";
//	public static final String city_simple = "com/zph/dao/city_simple.txt";
//	public static final String CreditReport_new = "com/zph/dao/CreditReport_new.txt";

	// D:\zzh_file
	/* 本地端 */
//	 public static final String baijiaxing = "D:/zzh_file/baijiaxing.txt";
//	 public static final String ImportList = "D:/zzh_file/ImportList.txt";
//	 public static final String User = "D:/zzh_file/User.txt";
//	 public static final String User1 = "D:/zzh_file/User1.txt";
//	 public static final String city = "D:/zzh_file/city.txt";
//	 public static final String city_simple = "D:/zzh_file/city_simple.txt";
//	 public static final String CreditReport_new = "D:/zzh_file/CreditReport_new.txt";
	 
	 
	 
	 /*相对路径*/
	 public static final String baijiaxing = "/com/zph/dic/baijiaxing.txt";
	 public static final String ImportList = "/com/zph/dic/ImportList.txt";
	 public static final String User = "/com/zph/dic/User.txt";
	 public static final String User1 = "/com/zph/dic/User1.txt";
	 public static final String city = "/com/zph/dic/city.txt";
	 public static final String city_simple = "/com/zph/dic/city_simple.txt";
	 public static final String CreditReport_new = "/com/zph/dic/CreditReport_new.txt";
	 
	 
	// 发布地址
//	public static final String publishUrl = "http://123.57.35.10:9002/ParseServer/ServiceStart";
	public static final String publishUrl = "http://localhost:9002/ParseServer/ServiceStart";
//	public static final String publishUrl = "http://101.200.185.99:9002/ParseServer/ServiceStart";// ?wsdl

 
	public void test() throws Exception{ 
		InputStream in = Constants.class.getResourceAsStream("/com/zph/dic/User.txt");
		BufferedReader br = new BufferedReader(new InputStreamReader(in, "utf-8"));
		while(br.readLine()!=null){
			System.out.println(br.readLine());
		}
	}
}
